package com.yuyou.tas.service.api.report.vo;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.util.StringUtils;

import java.math.BigDecimal;

public class QuesResultVo {

    @ApiModelProperty(example = "题目序号")
    private Integer sort ;

    @ApiModelProperty(example = "试卷类型，中文")
    private String quesType;


    @ApiModelProperty(example = "学生题目得数")
    private BigDecimal getScore;

    @ApiModelProperty(example = "题目分数")
    private BigDecimal score;


    @ApiModelProperty(example = "题目难度")
    private Integer hard;

    @ApiModelProperty(example = "平均得分率")
    private BigDecimal scoringRate;

    @ApiModelProperty(example = "知识点")
    private String know;

    @ApiModelProperty(example = "排序名称")
    private String name;

    @ApiModelProperty(example = "备注")
    private String remark;

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getQuesType() {
        return quesType;
    }

    public void setQuesType(String quesType) {
        this.quesType = quesType;
    }

    public BigDecimal getGetScore() {
        return getScore;
    }

    public void setGetScore(BigDecimal getScore) {
        this.getScore = getScore;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Integer getHard() {
        return hard;
    }

    public void setHard(Integer hard) {
        this.hard = hard;
    }

    public BigDecimal getScoringRate() {
        return scoringRate;
    }

    public void setScoringRate(BigDecimal scoringRate) {
        this.scoringRate = scoringRate;
    }

    public String getKnow() {
        return know;
    }

    public void setKnow(String know) {
        this.know = know;
    }

    public String getName() {
        if(StringUtils.isEmpty(name)){
            return "" + sort;
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
